import request from "@/utils/request";
export const UserLoginAPI = (data)=>request.post('/hospital/login',data)
//获取医生列表
export const GetDoctorListAPI = (pageNo,pageSize)=>request.get(`/hospital/getDoctorList?pageNo=${pageNo}&pageSize=${pageSize}`)
//添加或者修改医生接口
export const AddOrUpdateDoctorAPI = (data)=>{
    if (data.id) {
        return request.put(`/hospital/updateDoctor?id=${data.id}`,data)
    }else {
        return request.post('/hospital/addDoctor',data)
    }
}
//查看医生详情接口
export const GetDoctorDetailAPI = (id)=>request.get(`/hospital/getDoctorDetail?id=${id}`)